package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.ProcessOrderQuality;
import com.qijian.maindata.domain.query.ProcessOrderQualityQuery;
import com.qijian.maindata.domain.vo.ProcessOrderQualityVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 质量异常反馈Mapper接口
 *
 * @author qijian
 * @date 2023-08-02
 */
public interface ProcessOrderQualityMapper extends BaseMapper<ProcessOrderQuality> {

    @Select("select count(0) from main_process_order_quality WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    Page<ProcessOrderQualityVo> listVo(Page<ProcessOrderQualityVo> page, @Param(Constants.WRAPPER) Wrapper<ProcessOrderQualityQuery> queryWrapper);

    ProcessOrderQualityVo findById(@Param("id")Long id);
}
